package com.hxlc.dao;

import com.hxlc.pojo.EquipmentInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface EquipmentInfoDao extends JpaRepository<EquipmentInfoEntity,String> {

    @Query("select e from EquipmentInfoEntity e where e.module = :module and e.equipmentType = :type")
    List<EquipmentInfoEntity> getEquipmentInfoByModuleAndType(@Param("module") String module,@Param("type") String type);
}
